package com.ckzp.ext.drawing;

import com.ckzp.core.json.JsonUtil;

/**
 * Created by 51594 on 2024/5/29.
 */
public class DrawingModel {

    public int draw_types = 1;

    public static DrawingModel n() {
        DrawingModel dm = new DrawingModel();
        return dm;
    }


    public String img_base = "";
    public String img_div1 = "";
    public String img_div11 = "";
    public String img_div12 = "";
    public String img_div13 = "";
    public String img_div2 = "";
    public String img_div3 = "";
    public String img_div4 = "";
    public String icon_div1 = "";
    public String icon_div2 = "";
    public String icon_div3 = "";
    public String icon_div4 = "";
    public String title1 = "";
    public String title2 = "";
    public String title3 = "";
    public String title4 = "";
    public String title5 = "";
    public String title6 = "";
    public String title7 = "";
    public String title8 = "";


    public String out_img = "";
    public String view_img = "";

    public String getView_img() {
        return view_img;
    }

    public String getOut_img() {
        return out_img;
    }

    public DrawingModel setOut_img(String out_img) {
        this.out_img = out_img;
        return this;
    }

    public DrawingModel setView_img(String view_img) {
        this.view_img = view_img;
        return this;
    }

    public String getImg_base() {
        return img_base;
    }

    public DrawingModel setImg_base(String img_base) {
        this.img_base = img_base;
        return this;
    }

    public String getImg_div1() {
        return img_div1;
    }

    public DrawingModel setImg_div1(String img_div1) {
        this.img_div1 = img_div1;
        return this;
    }

    public String getImg_div11() {
        return img_div11;
    }

    public DrawingModel setImg_div11(String img_div11) {
        this.img_div11 = img_div11;
        return this;
    }

    public String getImg_div12() {
        return img_div12;
    }

    public DrawingModel setImg_div12(String img_div12) {
        this.img_div12 = img_div12;
        return this;
    }

    public String getImg_div13() {
        return img_div13;
    }

    public DrawingModel setImg_div13(String img_div13) {
        this.img_div13 = img_div13;
        return this;
    }

    public String getImg_div2() {
        return img_div2;
    }

    public DrawingModel setImg_div2(String img_div2) {
        this.img_div2 = img_div2;
        return this;
    }

    public String getImg_div3() {
        return img_div3;
    }

    public DrawingModel setImg_div3(String img_div3) {
        this.img_div3 = img_div3;
        return this;
    }

    public String getImg_div4() {
        return img_div4;
    }

    public DrawingModel setImg_div4(String img_div4) {
        this.img_div4 = img_div4;
        return this;
    }

    public String getIcon_div1() {
        return icon_div1;
    }

    public DrawingModel setIcon_div1(String icon_div1) {
        this.icon_div1 = icon_div1;
        return this;
    }

    public String getIcon_div2() {
        return icon_div2;
    }

    public DrawingModel setIcon_div2(String icon_div2) {
        this.icon_div2 = icon_div2;
        return this;
    }

    public String getIcon_div3() {
        return icon_div3;
    }

    public DrawingModel setIcon_div3(String icon_div3) {
        this.icon_div3 = icon_div3;
        return this;
    }

    public String getIcon_div4() {
        return icon_div4;
    }

    public DrawingModel setIcon_div4(String icon_div4) {
        this.icon_div4 = icon_div4;
        return this;
    }

    public String getTitle1() {
        return title1;
    }

    public DrawingModel setTitle1(String title1) {
        this.title1 = title1;
        return this;
    }

    public String getTitle2() {
        return title2;
    }

    public DrawingModel setTitle2(String title2) {
        this.title2 = title2;
        return this;
    }

    public String getTitle3() {
        return title3;
    }

    public DrawingModel setTitle3(String title3) {
        this.title3 = title3;
        return this;
    }

    public String getTitle4() {
        if (title4 != null && title4.length() > 13) {
            title4 = title4.substring(0, 12) + "..";
        }
        return title4;
    }

    public DrawingModel setTitle4(String title4) {
        this.title4 = title4;
        return this;
    }

    public String getTitle5() {
        return title5;
    }

    public DrawingModel setTitle5(String title5) {
        this.title5 = title5;
        return this;
    }

    public String getTitle6() {
        return title6;
    }

    public DrawingModel setTitle6(String title6) {
        this.title6 = title6;
        return this;
    }

    public String getTitle7() {
        return title7;
    }

    public DrawingModel setTitle7(String title7) {
        this.title7 = title7;
        return this;
    }

    public String getTitle8() {
        return title8;
    }

    public DrawingModel setTitle8(String title8) {
        this.title8 = title8;
        return this;
    }

    public int getDraw_types() {
        return draw_types;
    }

    public void setDraw_types(int draw_types) {
        this.draw_types = draw_types;
    }

    @Override
    public String toString() {
        return "DrawingModel{" +
                "img_base='" + img_base + '\'' +
                ", img_div1='" + img_div1 + '\'' +
                ", img_div2='" + img_div2 + '\'' +
                ", img_div3='" + img_div3 + '\'' +
                ", img_div4='" + img_div4 + '\'' +
                ", icon_div1='" + icon_div1 + '\'' +
                ", icon_div2='" + icon_div2 + '\'' +
                ", icon_div3='" + icon_div3 + '\'' +
                ", icon_div4='" + icon_div4 + '\'' +
                ", title1='" + title1 + '\'' +
                ", title2='" + title2 + '\'' +
                ", title3='" + title3 + '\'' +
                ", title4='" + title4 + '\'' +
                ", title5='" + title5 + '\'' +
                ", title6='" + title6 + '\'' +
                ", out_img='" + out_img + '\'' +
                '}';
    }

    public String toJson() {
        return JsonUtil.toJsonString(this);
    }

}
